package com.zntg.service.impl;
import com.zntg.api.renGouShu.bo.TblobstorageBo;
import com.zntg.api.renGouShu.entity.TblobstorageEntity;
import com.zntg.mapper.crmdb.TblobtSorageForReportMapper;
import com.zntg.service.TblobstorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *@tablename TBLOBSTORAGE
 *@author zhengyunfei
 *@createDate Tue Dec 11 21:26:30 CST 2018
 */
 @Service("tblobstorageService")
 public class TblobstorageServiceImpl implements TblobstorageService {
 @Autowired
 private TblobtSorageForReportMapper tblobtSorageMapper;
//查询附件序号
public int getTblobStorageSeq(){
     int count=0;
     try{
             count=(Integer)tblobtSorageMapper.getTblobStorageSeq();
         }catch(Exception e){
            e.printStackTrace();
         }
         return count;
    }
    public void add(TblobstorageBo bo){
        try{
            TblobstorageEntity entity=TblobstorageBo.boToEntity(bo);
            tblobtSorageMapper.add(entity);
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}

